//
//  JSImageEditPopupView.m
//  JigSaw
//
//  Created by slim on 15/2/10.
//  Copyright (c) 2015年 LITB. All rights reserved.
//

#import "JSImageEditPopupView.h"

@implementation JSImageEditPopupView

+ (JSImageEditPopupView*)initCustomView
{
    NSArray* nib = [[NSBundle mainBundle] loadNibNamed:@"JSImageEditPopupView" owner:nil options:nil];
    if (nib.count <= 0) {
        return nil;
    }
    return nib[0];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    self.switchBtn.rac_command = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id input) {
        self.switchBlk();
        return [RACSignal empty];
    }];
    self.rotateBtn.rac_command = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id input) {
        self.rotateBlk();
        return [RACSignal empty];
    }];
    self.zoomInBtn.rac_command = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id input) {
        self.zoomInBlk();
        return [RACSignal empty];
    }];
    self.zoomOutBtn.rac_command = [[RACCommand alloc] initWithSignalBlock:^RACSignal *(id input) {
        self.zoomOutBlk();
        return [RACSignal empty];
    }];

}
@end
